﻿@using System.Web.UI.WebControls
@model Users.Models.LoginModel
@{
    ViewBag.Title = "登录";
}

<h2>登录</h2>
@Html.ValidationSummary()
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    <input type="hidden" name="returnUrl" value="@ViewBag.ReturnUrl"/>
    <div class="form-group">
        <label>用户名</label>
        @Html.TextBoxFor(x=>x.Name,new {@class="form-control",placeholder="Admin"})
    </div>
    <div class="form-group">
        <label>密码</label>
        @Html.PasswordFor(x => x.Password, new {@class = "form-control",placeholder="Password2015"})
    </div>
    <button class="btn btn-primary" type="submit">登录</button>
}

@using (Html.BeginForm("GoogleLogin", "Account"))
{
    <input type="hidden" name="returnUrl" value="@ViewBag.returnUrl" />
    <button class="btn btn-primary" type="submit">Google账户登录</button>
}
